package com.tff.gmall.user.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.tff.gmall.beans.UmsMember;
import com.tff.gmall.service.UmsMemberService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class UmsMemberController {

    @Reference
    UmsMemberService memberService;

    @RequestMapping(value = "/getUmsMemberById", method = RequestMethod.GET)
    @ResponseBody
    public UmsMember getUmsMemberById(Integer id) {
        return memberService.getUmsMemberById(id);
    }

}
